package ribbon.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *
 *
 * @author zengchao
 * @date 2021-07-11 15:52:43
 */
@Configuration
public class UserRibbonConfig {
    @Bean
    public IRule ribbonRule(){
        return new RandomRule();
    }
}
